package com.ruoyi.web.wuchuan.command;


import com.ruoyi.web.wuchuan.dto.PDFProperties;
import com.ruoyi.web.wuchuan.handle.PDFModule;
import com.ruoyi.web.wuchuan.util.PDFutil;

import java.text.SimpleDateFormat;
import java.util.Date;


public class EcologyExamaination implements PDFModule {
    private static final String pdfName = "生态坐标体检"+new SimpleDateFormat("yyyyMMddHHmmss").format(new Date())+".pdf";
    private static final String tempPath = System.getProperty("java.io.tmpdir");
    private static final String pdfModulePath = "templates/zbdstbg1.pdf";
    private final String zipName = "生态坐标体检"+new SimpleDateFormat("yyyyMMddHHmmss").format(new Date())+".zip" ;

    @Override
    public String getZipName() {
        return zipName;
    }

    @Override
    public String analyticalDataByType(PDFProperties pdfProperties,String uuid) {
        return  PDFutil.spliceParam(pdfProperties,tempPath,pdfName,pdfModulePath,uuid);
    }
}
